package car;

/**
 * @author oldliu
 * @since 1.0
 */
//父类：车辆
public abstract  class Vechile {
    String serialNo;//车牌
    private int price;//日租金
    //private String type;//车型
    private String brand;//品牌
    private int seats;//座位数
    private boolean state;//是否可租，false,可租，true表示不可租


    //计算租金
    //public abstract float calcMoney(int days);
    public  float calcMoney(int days){
        return days*price;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }
}